﻿<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%option explicit%>
<%
Dim RZ_IN
RZ_IN=1
%>
<!--#include file="../conn.inc.asp" -->
<!--#include file="admin_inc/admin.function.asp" -->
<!--#include file="admin_inc/admin.sqlfunction.asp" -->
<!--#include file="../asp/specialshow.asp" -->
<%
checkadmin(1)
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>生成专题页</title>
<link type="text/css" href="style/style.css" rel="stylesheet" rev="stylesheet"/>
</head>
<body style="margin-left:50px;margin-top:0px;">
<%
Dim specialid,filepath,qstring
specialid=Trim(request.querystring("specialid"))
Call ChangeStatic(1,0)
S_TEMPLATE=""
S_HTMLMBUFFER=""
qstring=RZ_PRE_SPECIAL_SHOW&"0-s"&specialid&".html"
S_RZPARAM.QueryString=qstring
Call SpecialShow(1)
Call CreateFolders(GetPath(RZ_HTML_PATH&"/"&RZ_PRE_SPECIAL_SHOW&"0"))
filepath=GetPath(RZ_HTML_PATH&"/"&RZ_PRE_SPECIAL_SHOW&"0/s"&specialid&".html")
Call SaveFile(filepath,S_HTMLMBUFFER)
Call ChangeStatic(1,1)

If app("rz_language")=2 Then 
	S_TEMPLATE=""
	S_HTMLMBUFFER=""
	qstring=RZ_PRE_SPECIAL_SHOW&"1-s"&specialid&".html"
	S_RZPARAM.QueryString=qstring
	S_RZPARAM.Generate()
	Call SpecialShow(1)
	Call CreateFolders(GetPath(RZ_HTML_PATH&"/"&RZ_PRE_SPECIAL_SHOW&"1"))
	filepath=GetPath(RZ_HTML_PATH&"/"&RZ_PRE_SPECIAL_SHOW&"1/s"&specialid&".html")
	Call SaveFile(filepath,S_HTMLMBUFFER)
End If 
Dim rst,sqlt
Set rst = Server.CreateObject("ADODB.Recordset")
sqlt = "select * from [c_special] where id="&specialid
rst.open sqlt,conn,1,3
rst("makehtmltime")=Now()
rst.update
rst.close
Set rst=Nothing
%>
<span style="color:blue;">成功生成专题网页</span>
<script type="text/javascript">
<!--
	parent.document.getElementById("mon").value="special<%=specialid%>done";
//-->
</script>
</body>
</html>